package com.lj.ljminsu.merchant.GuanjiaController;

import com.lj.ljminsu.merchant.GuanjiaBean.PageUtil;
import com.lj.ljminsu.merchant.GuanjiaBean.TjOrder;
import com.lj.ljminsu.merchant.GuanjiaService.impl.OderService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@CrossOrigin
public class FenyeController {
    @Resource
    private OderService oderService;
    @RequestMapping("FenyeSerch")
    @ResponseBody
    public List<TjOrder> tjOrderList(Integer DanQye){
        PageUtil pageUtil = oderService.QueueTotalPage(DanQye);
        List<TjOrder> orderList = oderService.Fenye(pageUtil);
        return orderList;
    }
}
